/**
 * Created by Neville Kadwa.
 */
package org.shiftone.cdep.util;

import java.util.Iterator;

public class NullIterator implements Iterator
{
    private static final NullIterator SINGLE_ITERATOR = new NullIterator();

    public static Iterator getNullIterator()
    {
        return SINGLE_ITERATOR;
    }

    private NullIterator() { }

    public void remove()
    {
    }

    public boolean hasNext()
    {
        return false;
    }

    public Object next()
    {
        return null;
    }
}
